package com.lemontree.web.serviceImpl;

import com.lemontree.web.dao.PermissionMapper;
import com.lemontree.web.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/7/12
 */
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService{
    @Autowired
    PermissionMapper permissionMapper;

    @Override
    public Set<String> getPermissionByUserId(Integer userId) {
        return permissionMapper.getPermissionByUserId(userId);
    }
}
